﻿using Microsoft.Extensions.Configuration;
using MiniFox.Configurations;

namespace MiniFox.Platform.File.Configurations
{
    /// <summary>
    /// 
    /// </summary>
    [Section(ELEMENT_NAME)]
    public class FileManageConfiguration
    {
        internal const string ELEMENT_NAME = "minifox:fileManage";

        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("default")]
        public string DefaultFileSetting
        {
            get;
            set;
        }
        ///// <summary>
        ///// 
        ///// </summary>
        //public FileSetting DefaultFolder
        //{
        //    get
        //    {
        //        return this.FileSettings[DefaultFileSetting];
        //    }
        //}
        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("routeName")]
        public string RouteName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("fileSettings")]
        public FileSettingCollection FileSettings
        {
            get;
            set;
        } = new FileSettingCollection();
    }
}
